package org.spring.springboot.app.community.notice.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.app.community.notice.domain.po.CommunityNoticePO;
import org.spring.springboot.app.community.notice.domain.vo.CommunityNoticeVO;
import org.spring.springboot.app.community.notice.domain.vo.NoticeSearchVO;

import java.util.List;

public interface CommunityNoticeDao {
    int deleteByPrimaryKey(String id);

    int insert(CommunityNoticePO record);

    int insertSelective(CommunityNoticePO record);

    CommunityNoticePO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CommunityNoticePO record);

    int updateByPrimaryKeyWithBLOBs(CommunityNoticePO record);

    int updateByPrimaryKey(CommunityNoticePO record);

    List<CommunityNoticeVO> findPage(NoticeSearchVO searchvo, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize,String officeId);
}